<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglib.jsp"%>
<%@page import="com.gfa4j.resource.ResourceManagerServer"%>
<%@page import="com.wef.common.util.CommonMessageDomain"%>
<%@page import="com.wef.demo.entity.domain.StudentDomain" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
		<%@include file="/styles/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/css_lib.jsp"%>
		<link rel="stylesheet" type="text/css" href="${ctx}/pages/demo/demo.css" />				
		<%@include file="/pages/common/js_global.jsp"%>
		<%@include file="/scripts/sdk/js_lib.jsp"%>
		<%@include file="/scripts/config/js_lib.jsp" %>
		<%@include file="/scripts/utils/js_lib.jsp"%>
		<%@include file="/scripts/i18n/js_lib.jsp"%>
		<%@include file="/scripts/format/js_lib.jsp"%>
		<%@include file="/scripts/validate/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/js_lib.jsp"%>
		<%@include file="/scripts/widgets/page-custom/js_lib.jsp"%>
		<%@include file="/scripts/widgets/datePicker/js_lib.jsp"%>
		<script type="text/javascript" src="${ctx}/pages/demo/demo.js"></script>
		<script type="text/javascript" src="${ctx}/pages/demo/components/condition_helper.js"></script>		
</head>

<body class="body">
<div id="Content_Show">
	<div class="Desc">
		功能:将表单中的信息封装为查询条件,如下: (<a href="#" id="aDiv1">表单ID生成condition源码</a>)&nbsp;(<a href="#" id="aDiv2">表单名称生成condition源码</a>)&nbsp;(<a href="#" id="aDiv3">表单selector生成condition源码</a>)
	</div>
	<div id="div1" style="display: none;">
		var fields=[];</br>
		fields = Gfa.ConditionHelper.buildConditionByFormId("editFormStudent");
	</div>
	<div id="div2" style="display: none;">
		var fields=[];</br>
		fields = Gfa.ConditionHelper.buildConditionByFormName("editFormStudent");
	</div>
	<div id="div3" style="display: none;">
		var field=[];</br>
		field = Gfa.ConditionHelper.buildCondition("form[name=editFormStudent]");
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<form id="editFormStudent" name="editFormStudent">
			<ul id="editUlStudent" allowChange="true" class="edit_box">
				<li>
					<k:label text="demo.Student.studentNum" allowBlank="false"/>
					<k:text property="studentNum" styleId="editStudentNum" styleClass="text" condition="likea"/>
				</li>
				<li>
					<k:label text="demo.Student.studentName" allowBlank="false"/>
					<k:text property="studentName" styleId="editStudentName" styleClass="text" condition="likea"/>
				</li>
				<li>
					<k:label text="demo.Student.birthday" allowBlank="false"/>
					<k:date property="birthday" styleId="editBirthday" styleClass="text" condition="eq"/>
				</li>
				<li>
					<k:label text="demo.Student.address" allowBlank="false"/>
					<k:text property="address" styleId="editAddress" styleClass="text" condition="likea"/>
				</li>
				<li>
					<k:label text="demo.Student.telphone" allowBlank="false"/>
					<k:text property="telphone" styleId="editTelphone" styleClass="text" condition="likea"/>
				</li>
				<li>
					<k:label text="demo.Student.gender" allowBlank="false"/>
					<k:radio property="gender" text="男" value="true" condition="eq"/>
					<k:radio property="gender" text="女" value="false" condition="eq"/>
				</li>
				<li>
					<k:label text="demo.Student.email" allowBlank="false"/>
					<k:text property="email" styleId="editEmail" styleClass="text" condition="eq"/>
				</li>
				<li>
					<k:label text="demo.Student.idCard" allowBlank="false"/>
					<k:text property="idCard" styleId="editIdCard" styleClass="text" condition="eq"/>
				</li>
				<li>
					<k:label text="demo.Student.remark" allowBlank="false"/>
					<k:textarea property="remark" styleId="editRemark" condition="likea"/>
				</li>
			</ul>
		</form>
	</div>	
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="newBtnConditionByFormId" text="demo.conditionHelper.getConditionByFormId" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li>
				<k:button styleId="newBtnConditionByFormName" text="demo.conditionHelper.getConditionByFormName" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li>
				<k:button styleId="newBtnConditionByFormSelector" text="demo.conditionHelper.getConditionByFormSelector" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li style="width:100%;">
				<div id="divFormObjJsonString"></div>
			</li>
		</ul>
	</div>
</div>
</body>
</html>